You can customize the viewer in order to display a specific document, hide and show components that should or shouldn’t be used, or specify an annotation file.
Plugin Example | Copy Code |
---|---|
$("#myDiv").pccViewer( documentID: "myDocument.doc", toolboxMenuOpen: false, annotationID: 'Annotation Filename', uiElements: { toolTips: true, fullScreenToggle: true, firstLastPage: false } ); |
The example above demonstrates the following:
- Specifies the document to be displayed within the viewer.
- The toolbox menu should not be opened when the viewer is loaded.
- The default name of the annotation file to be used within the viewer.
- The user interface of the viewer will include tooltips and permit it to be toggled to full-screen, however it will not display the First and Last page navigation buttons.
For a full list of customizable features, please refer to the Developer’s Guide.